package cn.ljq.service;

import cn.ljq.dao.TaskMapper;
import cn.ljq.entity.Task;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public class TaskServiceImpl implements TaskService {

    @Autowired
    TaskMapper taskMapper;

    @Override
    public List<Task> findAll() {
        return taskMapper.findAll();
    }

    @Override
    public List<Task> findByClzno(String clzno) {
        return taskMapper.findByClzno(clzno);
    }

    @Override
    public List<Task> findByTid(int tid) {
        return taskMapper.findByTid(tid);
    }

    @Override
    public int add(Task task) {
        return taskMapper.add(task);
    }

    @Override
    public int del(int kid) {
        return taskMapper.del(kid);
    }
}
